//域名封装
export const dataurl = 'http://labour_admin.kuxia.top';

import request from '/@/utils/request';

//菜单列表接口封装
export function useMenuApi() {
    return {
        signIn: (data: object) => {
            return request({
                url: '/auth/menus/index',
                method: 'post',
                data,
            });
        },
    };
}

//图片上回传接口封装
export function pictureApi() {
    return {
        signIn: (data: FormData) => {
            return request({
                url: "/api/common/upload",
                method: "post",
                data: data,
                headers: {
                    "Content-Type": "multipart/form-data",
                },
            });
        },
    };
}

//档级列表接口封装
export function gradeindexApi() {
    return {
        signIn: (data: object) => {
            return request({
                url: '/grade/index/index',
                method: 'post',
                data,
            });
        },
    };
}

//证书接口封装
export function certclassApi() {
    return {
        signIn: (data: object) => {
            return request({
                url: '/user/certclass/index',
                method: 'post',
                data,
            });
        },
    };
}

// 公司列表接口封装
export function organizationApi() {
    return {
        signIn: (data: object) => {
            return request({
                url: '/organization/index/index ',
                method: 'post',
                data,
            });
        },
    };
}